package com.ss.android.update;

import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import android.view.View;

final class j implements View.OnClickListener {
    private final h c;
    private final boolean a;
    private final boolean b;

    j(h arg1, boolean arg2, boolean arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onClick(View arg4) {
        if(!this.a || !this.b) {
            if((this.a) && !this.b) {
                this.c.a("forcible_refuse");
            }else if(this.b) {
                this.c.a("downloaded_refuse");
            }else {
                this.c.a("refuse");
            }
        }
        else {
            this.c.a("forcible_downloaded_refuse");
        }

        if(this.a) {
            LocalBroadcastManager.getInstance(this.c.getContext()).sendBroadcast(new Intent("com.ss.android.common.app.action.exit_app"));
        }

        this.c.dismiss();
    }
}

